package com.example.alibabanacosdiscoveryclient01.service;

import com.example.alibabanacosdiscoveryclient01.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
* @author:guoq
* @date:2024/7/4
* @descripion: 远程调用服务提供端的方法
*/
@FeignClient(name = "alibaba-nacos-discovery-server",fallback = ConsumerServiceFallback.class,configuration= FeignConfig.class)
public interface ConsumerService {
    @RequestMapping(value = "/server/hello")
    String hello(@RequestParam(value = "name") String name);
}
